
//	document.addEventListener('DOMContentLoaded', sizeVideo);
var loadMore = {
    number_show: 7,
    pos: 7,
    selector: 'ul.list_website',
    selector_loadmore: '.loadmore',
    total: function() {
        return $(loadMore.selector + " li").size() - 1;
    },
    load: function() {
        $(loadMore.selector).find("li:gt(" + (loadMore.pos - 1) + ")").hide()
                .parent().find(loadMore.selector_loadmore).show().css('margin-right', '0px');
    },
    loadMore: function() {
        if (loadMore.total() < loadMore.number_show) {
            return false;
        } else {
            var start = loadMore.pos;
            var end = loadMore.pos + loadMore.number_show;
            loadMore.pos = end;
            $(loadMore.selector).find("li:lt(" + (start) + ")").hide();
            $(loadMore.selector).find("li:gt(" + (start - 1) + ")").fadeIn();
            $(loadMore.selector).find("li:gt(" + (end - 1) + ")").hide();
            if (end >= loadMore.total()) {
                loadMore.pos = 0;
            }
            $(loadMore.selector).find(loadMore.selector_loadmore).show();
        }
    }
};